package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class BrandReq implements Serializable {

    @ApiModelProperty(value = "品牌名称",required = true)
    @Pattern(regexp = "[\\u4e00-\\u9fa5a-zA-Z0-9-.]{0,10}+",message = "品牌不允许特殊字符长度最大为10")
    @NotBlank(message = "品牌名称不可为空")
    private String brandName;
}
